Supported OLE DB Property Groups
The data provider defines the properties that apply to data sources, and properties that provide a read-only set of information about the data provider and the data source.
To obtain a data provider's property values, a data consumer calls one of the methods listed in Table 4-3.
Data Source Property Group
The ADO data provider supports the following property in the DBPROP_DATASOURCE property set. For more information, refer to your Microsoft OLE DB programming documentation.
Data Source Information Property Group
Table 4-5 lists the properties in the DBPROPSET_DATASOURCEINFO property set supported by the ADO data provider. These properties are in the Data Source Information property group, are read-only properties, and constitute a set of static information about the data provider and data source. For more information about these properties, refer to your Microsoft OLE DB programming documentation.
NOTE: Some values are database-specific and depend on the SequeLink service you are using. These database-specific values are not listed in the table.
Table 4-5. OLE DB Data Source Information Properties Supported by the ADO Data Provider Property ID Default Value and Description DBPROP_ACTIVESESSIONS VALUE=0. There is no limit to the number of sessions that can exist at one time. DBPROP_ASYNCTXNABORT VALUE=VARIANT_FALSE. The data provider cannot abort transactions asynchronously. DBPROP_ASYNCTXNCOMMIT VALUE=VARIANT_FALSE. The data provider cannot commit transactions asynchronously. DBPROP_BYREFACCESSORS VALUE=VARIANT_FALSE. The data provider does not support the DBACCESSOR_PASSBYREF flag. DBPROP_CATALOGLOCATION The value depends on the SequeLink service you are using. DBPROP_CATALOGTERM Specifies the name the data source uses for a catalog.VALUE="Database" DBPROP_CATALOGUSAGE A combination of zero or one or more of the following:VALUE=DBPROPVAL_CU_DML_STATEMENTS. Catalog names are supported in all Data Manipulation Language (DML) statements.VALUE=DBPROPVAL_CU_TABLE_DEFINITION. Catalog names are supported in all table definition statements.VALUE=DBPROPVAL_CU_INDEX_DEFINITION. Catalog names are supported in all index definition statements.VALUE=DBPROPVAL_CU_PRIVILEGE_DEFINITION. Catalog names are supported in all privilege definition statements. DBPROP_COLUMNDEFINITION VALUE=DBPROPVAL_CD_NOTNULL. Columns can be created non-nullable. DBPROP_CONCATNULLBEHAVIOR The value depends on the SequeLink service you are using. DBPROP_CONNECTIONSTATUS VALUE=DBPROPVAL_CS_INITIALIZED. The data source is in an initialized state and able to communicate with the data store. DBPROP_DATASOURCENAME Specifies the name of the data source used during connection. The data source is defined using the DataDirect Configuration Manager. See "Using the ADO Client" for more information about configuring ADO data sources. DBPROP_DATASOURCEREADONLY VALUE=VARIANT_FALSE. The data source can be updated. DBPROP_DBMSNAME Specifies the name of the data store accessed by the ADO provider. The value depends on the SequeLink service you are using. DBPROP_DBMSVER Specifies the version of the DBMS that data provider is currently accessing. This value depends on the SequeLink service you are using. DBPROP_DSOTHREADMODEL VALUE=DBPROP_RT_FREETHREAD. The ADO provider supports the free-threading model. DPROP_GROUPBY This value depends on the SequeLink service you are using. DBPROP_HETEROGENEOUSTABLES VALUE=0. Heterogeneous joins are not supported. DBPROP_IDENTIFIERCASE This value depends on the SequeLink service you are using. DBPROP_MAXINDEXSIZE This value depends on the SequeLink service you are using. DBPROP_MAXROWSIZE VALUE=0. There is no limit on the maximum length of a single row in a table. DBPROP_MAXROWSIZEINCLUDESBLOB VALUE=VARIANT_FALSE. The maximum row size does not include the length of all BLOB data. DBPROP_MAXTABLEINSELECT VALUE=0. There is no limit on the number of tables allowed in the FROM clause of a Select statement. DBPROP_MULTIPLEPARAMSETS VALUE=VARIANT_TRUE. The data provider supports multiple parameter sets at the same time. DBPROP_MULTIPLERESULTS VALUE=DBPROPVAL_MR_SUPPORTED. The data provider supports multiple results objects. DBPROP_MULTIPLESTORAGEOBJECTS VALUE=VARIANT_TRUE. The data provider supports more than one open storage object at a time. DBPROP_MULTITABLEUPDATE VALUE=VARIANT_FALSE. The data provider cannot update rowsets derived from multiple tables. DBPROP_NULLCOLLATION The value depends on the SequeLink service you are using. DBPROP_OLEOBJECTS VALUE=DBPROPVAL_OO_BLOB. The data provider supports access to BLOBs as structured storage objects. DBPROP_OPENROWSETSUPPORT VALUE=DBPROPVAL_ORS_TABLE. The data provider supports opening tables through IOpenRowset. DBPROP_ORDERBYCOLUMNSINSELECT This value depends on the SequeLink service you are using. DBPROP_OUTPUTPARAMETERAVAILABILITY VALUE=DBPROPVAL_OA_ATROWRELEASE. If a command returns a single result that is a rowset, output parameter data is available at the time the rowset is completely released. DBPROP_PERSISTENTIDTYPE VALUE=DBPROPVAL_PT_NAME. The data provider uses this type of DBID when storing (persisting) DBIDs for tables and columns. DBPROP_PREPAREABORTBEHAVIOR The value depends on the SequeLink service you are using. DBPROP_PREPARECOMMITBEHAVIOR The value depends on the SequeLink service you are using. DBPROP_PROCEDURETERM This value depends on the SequeLink service you are using. DBPROP_PROVIDERFRIENDLYNAME Specifies the name of data provider, for example, SequeLink for ADO Provider. DBPROP_PROVIDERNAME VALUE=slslknn.DLL is the default, where nn is the release level of data provider. DBPROP_PROVIDEROLEDBVER Refer to the README file for the supported version of OLE DB supported by the data provider. DBPROP_PROVIDERVER Refer to the README file for the supported version. DBPROP_QUOTEDIDENTIFIERCASE This value depends on the SequeLink service you are using. DBPROP_ ROWSETCONVERSIONSONCOMMAND VALUE=VARIANT_TRUE. Callers can inquire on a command about conversions supported on rowsets generated by the command. DBPROP_SCHEMATERM This value depends on the SequeLink service you are using. DBPROP_SCHEMAUSAGE The value depends on the SequeLink service you are using. DBPROP_SERVERNAME Specifies the name of the server. DBPROP_SQLSUPPORT This value depends on the SequeLink service you are using. DBPROP_STRUCTUREDSTORAGE VALUE=DBPROPVAL_SS_ISEQUENTIALSTREAM. DBPROP_ SUBQUERIES A combination of zero, one, or more of the following:VALUE=DBPROPVAL_SQ_COMPARISONVALUE=DBPROPVAL_SQ_CORRELATEDSUBQUERIES. This indicates that all predicates that support subqueries support correlated subqueries.VALUE=DBPROPVAL_SQ_EXISTSVALUE=DBPROPVAL_SQ_INVALUE=DBPROPVAL_SQ_QUANTIFIED DBPROP_ SUPPORTEDTXNDDL This value depends on the SequeLink service you are using. DBPROP_ SUPPORTEDTXNISOLEVELS This value depends on the SequeLink service you are using. DBPROP_ SUPPORTEDTXNISORETAIN VALUE=0. The data provider supports no transaction isolation retention levels. DBPROP_TABLETERM Specifies the name the data source uses for a table.VALUE="Table" DBPROP_USERNAME Specifies a character string with the name used in a particular database. This can be different from the login name.
Initialization Property Group
Table 4-6 provides the supported initialization properties for the ADO provider. The properties are read/write. For more information, refer to the Microsoft OLE DB programming documentation.
Table 4-6. Initialization Properties Supported by the ADO Data Provider Property Name Default Value and Description DBPROP_AUTH_ PASSWORD Specifies the password to be used for connecting to the data source or enumerator.This corresponds to the Password connection attribute. See "Connecting with a Provider String" for more information about connection attributes. DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO VALUE=VARIANT_FALSE. The data source object cannot store the password or other sensitive authentication information. DBPROP_AUTH_ USERID Specifies the User ID to be used for connecting to the data source.This corresponds to the User ID connection attribute. See "Connecting with a Provider String" for more information about connection attributes,. DBPROP_INIT_CATALOG Specifies the name of the initial or default catalog to use when connecting to the data source. DBPROP_INIT_ DATASOURCE Specifies the name of the data source or enumerator to which to connect. DBPROP_INIT_ HWND Specifies the window handle to use if the data source object or enumerator needs to prompt for additional information. DBPROP_INIT_LCID Specifies the preferred locale ID for the consumer. DBPROP_INIT_ MODE VALUE=DB_MODE_READ. The default is read-only. DBPROP_INIT_OLEDBSERVICES VALUE=0. The data provider does not enable the OLE DB services. DBPROP_INIT_PROMPT VALUE=DBPROMPT_COMPLETE. Display a connection dialog only if missing information is needed. DBPROP_INIT_ PROVIDERSTRING Specifies a provider-specific string that contains extra initialization information. See "Connecting with a Provider String" for information about using the provider string.Consumers should use this property only for provider-specific connection information as described in Table 3-2.
Rowset Property Group
OLE DB data consumers can request certain properties to be satisfied by the rowsets that result from an OpenRowset or ICommand::Execute call. Common properties include the set of interfaces to be supported by the resulting rowset.
The ADO data provider supports the IRowsetIdentity interface. This allows the data consumer to determine when two row handles represent the same underlying data.
Table 4-7 provides the properties that are included in the ADO provider properties group. The table shows the initial default values. Some of these properties can be changed at the Command level (through ICommandProperties->SetProperties) or Session level (through IOpenRowset). The resulting rowset will contain different values for these properties.
Session Property Group
Table 4-8 lists the properties the ADO data provider supports in the DBPROPSET_SESSION property set. For more information, refer to your Microsoft OLE DB programming information.